list_num = [1,2,3,4,5]

length = len(list_num)

i = 0

while i<length:
    print(f'{list_num[i]}的立方体是{list_num[i]**3}')
    i+=1

# 增量赋值运算符 x += 1

# break
for num in list_num:
    if num ==3:
        continue
    else:
        print(num,end=' ')

dict_a = {'a':1,'b':2,'c':3,'d':4}

for key in dict_a:
    print(key)

for key in dict_a.keys():
    print(key)

for val in dict_a.values():
    print(val)

for key,val in dict_a.items():
    print(f'key:{key},val:{val}')